<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/admincheck.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<p align=center><font color=red>您没有此项目管理权限！</font></p>"
response.End
end if
end if
%>
<!--#include file="inc/meta.asp"-->
<body>
<div id="bodyright">
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr> 
<td height="25" colspan="4" align="center" background="images/admin_bg_1.gif"><b><font color="#ffffff">后台管理员设置</font></b></td>
</tr>
<tr align="center" bgcolor="#E8F1FF"> 
<td width="25%" height="20">管理员</td>
<td width="25%">密 码</td>
<td width="25%">权 限</td>
<td width="25%">操 作</td>
</tr>
		<%set rs=server.CreateObject("adodb.recordset")
		rs.Open "select * from admin order by flag",conn,1,1
		do while not rs.EOF%>
<form name="form1" method="post" action="admin_save.asp?action=edit&amp;adminid=<%=int(rs("adminid"))%>">
<tr align="center" bgcolor="#E8F1FF"> 
<td height="20"><input name="admin" type="text" size="16" value="<%=trim(rs("admin"))%>"></td>
<td><input name="password" type="password" size="16"></td>
<td><%select case rs("flag")
                case "1"
                response.Write "<input type=radio name=flag value=1 checked>管理&nbsp;<input name=flag type=radio value=2 >添加&nbsp;<input type=radio name=flag value=3>查看"
                case "2"
                response.Write "<input type=radio name=flag value=1>管理&nbsp;<input name=flag type=radio value=2 checked>添加&nbsp;<input type=radio name=flag value=3>查看"
				case "3"
				response.Write "<input type=radio name=flag value=1>管理&nbsp;<input name=flag type=radio value=2>添加&nbsp;<input type=radio name=flag value=3  checked>查看"
                end select%>
</td>
<td><input type="submit" class="formbutton" name="Submit" value="修 改">
&nbsp;<a href="admin_save.asp?adminid=<%=int(rs("adminid"))%>&amp;action=del" onClick="return confirm('您确定要删除此用户吗？')"><font color=red>删除</font></a>
</td>
</tr>
</form>
		<%rs.movenext
		loop
		rs.close
		set rs=nothing
		%>
</table><br>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr> 
<td height="25" colspan="4" align="center" background="images/admin_bg_1.gif"><b><font color="#ffffff">添加管理员</font></b></td>
</tr>
<tr align="center" bgcolor="#E8F1FF"> 
<td width="25%" height="20">管理员</td>
<td width="25%">密 码</td>
<td width="25%">权 限</td>
<td width="25%">操 作</td>
</tr>
<form name="form1" method="post" action="admin_save.asp?action=add">
<tr align="center" bgcolor="#E8F1FF"> 
<td height="20"><input name="admin2" type="text" size="16"></td>
<td><input name="password2" type="password" size="16"> </td>
<td><input type="radio" name="flag2" value="1">
管理 
<input name="flag2" type="radio" value="2" checked>
添加 
<input type="radio" name="flag2" value="3">
查看
</td>
<td>
<input type="submit" class="formbutton" name="Submit2" value="添加管理员">
</td>
</tr>
</form>
</table>
</div>
<!--#include file="copyright.asp"-->
</body>
<%call CloseConn()%>
</html>